package com.campus.commons.utils.annotation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(
        validatedBy = {}
)
public @interface ZoreOrOne {

    String message() default "参数值范围只能是0||1";

    int min();

    int max();
    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}

